import { pageTo } from 'nc-lightapp-front';

const config = {
    appcode: pageTo.getSearchParam('c'),
    pagecode: pageTo.getSearchParam('p'), // 公共方法 - 获取页面编码
    headcode: 'QUERY',
    bodycode: 'LIST',
    quickcopycode: 'QQModel',
    multiLang: {
        moduleId: '201101-ZNTDJT', // 多语文件配置
        domainName: 'erm'
    },
    pageButtonArea: 'page',
    innerButtonArea: 'table_inner',
    pageSize: 100,
    dataSource: 'erm.bmc.bm.list',
    dataSourceCommon: 'erm.bmc.bm',
    searchCache: 'erm.bmc.bm.list.searchCache',
    cache: 'erm.bmc.bm.list.cache',
    bxApply: {
        url: '/nccloud/resources/erm/expenseaccount/expenseaccount4Pull/card/index.html#/pull?status=add&',
        info: {
            appcode: '201102CZBX',
            pagecode: '201102CZBX_card',
            status: 'add'
        }
    },
    jkApply: {
        url: '/nccloud/resources/erm/expenseaccount/loanmanageForPull/card/index.html#/pull?',
        info: {
            appcode: '201102CZJK',
            pagecode: '201102CZJK_card',
            status: 'add'
        }
    }
};

export default config;
